<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  		<title><fmt:message key="appRoleList.heading"/></title>
  </head>
  <body>	
    <ul>
          <li class="titleonly">
          <img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;角色管理
</li>
        </ul>
        <ul>
   <form  action="appRoles.do" method="Post">
        <table width="700" border="0" cellspacing="0" cellpadding="0" class="dd">
  <tr>
    <td colspan="5" ><a href="editAppRole.do" ><img src="${ctxPath}/css/style/base/image/plus.gif" />&nbsp;&nbsp;添加角色</a></td>
  </tr>
  <tr>
    <td colspan="5" style="font-size:12px; color:#F03; font-weight:bold">功能介绍:角色查找</td>
    </tr>
  <tr>
    <td>角色名称：</td>
    <td><input type="text" class="inputbox120" name="Q_roleName_S_LK" value="${param['Q_roleName_S_LK']}"/></td>
    <td></td>
    <td>状态：</td>
    <td>
 		<select name="Q_status_SN_EQ" id="status" class="inputbox130">
			<option value="">所有</option>
			<option value="0" <c:if test="${param['Q_status_SN_EQ']==0}">selected</c:if>><fmt:message key='common.status0'/></option>
			<option value="1" <c:if test="${param['Q_status_SN_EQ']==1}">selected</c:if>><fmt:message key='common.status1'/></option>
		</select>
	 </td>
  </tr>
  <tr>
    <td colspan="5" style="text-align:center"><input name="Submit" type="submit" class="inputsubmit" value="查询" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
       <input name="Submit2" type="reset" class="inputsubmit" value="重置" /></td>
  </tr>
</table>
</form>
 </ul>
    
	<ul><li class="titleonly"><img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;角色列表</li></ul>
	<ul>
	  <li>
	  <display:table name="appRoles" sort="external" pagesize="${appRoles.objectsPerPage}"
			    	cellpadding="0" cellspacing="0" style="width:100%" export="false" 
			    	id="appRoleItem" partialList="true" size="${appRoles.fullListSize}" requestURI="appRoles.do">
			    	<display:column title="${checkAll}" media="html" style="width:8px;align:center">
				  		<c:if test="${appRoleItem.roleId!=1}"><input type="checkbox" name="roleId" value="${appRoleItem.roleId}"></c:if>
				  	</display:column>
				<display:column property="roleName" class="tableinfo center" titleKey="appRole.roleName" sortName="roleName" sortable="true"
				paramId="roleId" paramProperty="roleId" href="editAppRole.do"/>  
				<display:column property="roleDesc" titleKey="appRole.roleDesc" sortName="roleDesc" sortable="true" class="tableinfo center"/>  
				<display:column  titleKey="appRole.status" sortProperty="status" sortName="status" sortable="true" class="tableinfo center">
					<fmt:message key="common.status_lb${appRoleItem.status}"/>
				</display:column>  
				<display:column media="html" title="管理" style="width:230px" class="tableinfo center">
					<a href="editAppRole.do?roleId=${appRoleItem.roleId}" ><img src="${ctxPath}/css/style/base/image/amend.gif" />&nbsp;&nbsp;修改</a>
					<a href="#" class="view" onclick="viewDetail('roleId',${appRoleItem.roleId})" ><img src="${ctxPath}/css/style/base/image/open.gif" />&nbsp;&nbsp;查看</a>
					<a href="grantRight.do?roleId=${appRoleItem.roleId}" ><img src="${ctxPath}/css/style/base/image/001_57.gif" />&nbsp;&nbsp;授权</a>
					<c:if test="${appRoleItem.roleId!=1}">
						<a href="#" class="delete" onclick="deleteObj('roleId',${appRoleItem.roleId})">删除</a>
					</c:if>
				</display:column>
				 </display:table>
	  </li>
	</ul>
<!-- 	  			<a href="#" onclick="multiDelete('roleId');" class="delete">删除</a> -->
			<script type="text/javascript">
				highlightTableRows('appRoleItem');
			</script>
	</body>
</html>